home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / getpgrp.man < prev    next >
Encoding:
Text File  |  1989-04-16  |  1.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4. GETPGRP               C Library Procedures                GETPGRP
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      getpgrp - get process group
  10.  
  11. SSYYNNOOPPSSIISS
  12.      ppggrrpp == ggeettppggrrpp((ppiidd))
  13.      iinntt ppggrrpp;;
  14.      iinntt ppiidd;;
  15.  
  16. DDEESSCCRRIIPPTTIIOONN
  17.      The process group of the specified process is returned by
  18.      _g_e_t_p_g_r_p. If _p_i_d is zero, then the call applies to the
  19.      current process.
  20.  
  21.      Process groups are used for distribution of signals, and by
  22.      terminals to arbitrate requests for their input: processes
  23.      that have the same process group as the terminal are fore-
  24.      ground and may read, while others will block with a signal
  25.      if they attempt to read.
  26.  
  27.      This call is thus used by programs such as _c_s_h(1) to create
  28.      process groups in implementing job control.  The TIOCGPGRP
  29.      and TIOCSPGRP calls described in _t_t_y(4) are used to get/set
  30.      the process group of the control terminal.
  31.  
  32. SSEEEE AALLSSOO
  33.      setpgrp(2), getuid(2), tty(4)
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0              August 26, 1985                        1
  64.  
  65.  
  66.  
  67.